package com.houger.ddd.redpacket.infra.mysql;

import com.houger.ddd.redpacket.infra.entity.GrabRedPacket;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Houger.
 * @date 2024年04月21日 17:54.
 */
@Repository
public interface GrabRedPacketRepository extends JpaRepository<GrabRedPacket,Long>, JpaSpecificationExecutor<GrabRedPacket> {

    List<GrabRedPacket> findAllByRedPacketId(String redPacketId);
}
